<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2d-多属性值</title>
  <style>
    .box {
      width: 600px;
      height: 600px;
      border: 2px solid gray;
    }

    .box div {
      width: 100px;
      height: 100px;
      background: red;
      border: 1px solid black;
    }

    .box div:nth-child(1) {
      transform: translateX(500px);
    }

    .box div:nth-child(2) {
      transform: translateX(400px) rotate(45deg);
    }

    .box div:nth-child(3) {
      transform: rotate(45deg) translateX(400px);
      /* 顺序变化会导致XY轴方向的变化 最好位移放在前面*/
    }
  </style>
</head>

<body>
  <div class="box">
    <div></div>
    <div></div>
    <div></div>
  </div>
</body>

</html>